from django.urls import path
from . import views

urlpatterns = [
    path('create', views.MalfunctionCreateView.as_view(), name='malfunction_create'),
    path('list', views.MalfunctionListView.as_view(), name='malfunction_list'),
    path('<str:pk>/detail', views.MalfunctionDetailView.as_view(), name='malfunction_detail'),

    path('unhandled', views.MalfunctionUnhandledView.as_view(), name='malfunction_unhandled'),  # 待处理故障
    path('<str:pk>/handle', views.MalfunctionHandleView.as_view(), name='malfunction_handle'),  # 故障处理中

    path('done', views.MalfunctionDoneView.as_view(), name='malfunction_done'),  # 已处理故障
    path('my', views.MalfunctionMyView.as_view(), name='malfunction_my'),  # 我的故障
    path('classical', views.FaultClassicalView.as_view(), name='malfunction_classical'),  # 经典故障
]
